package cn.edu.zut.salarymanagesystem.bean.pojo;

import java.util.Date;

public class Append extends WorkRecord {
    private String commentary = null;
    private Date time = null;
    private Integer value;
    private Integer plus = 0;
    private String uid = null;
    private Integer valid = 0;

    public Append(String owner, Date time, String objectName, Integer number, Integer value, Integer valid, String commentary) {
        super(owner, time, objectName, number, value, valid, commentary);
    }

    public Append(){

    }
    public String getCommentary() {
        return commentary;
    }

    public void setCommentary(String commentary) {
        this.commentary = commentary;
    }

    @Override
    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public String getUid() {
        return String.valueOf(uid);
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Integer getValid() {
        return valid;
    }

    public void setValid(Integer valid) {
        this.valid = valid;
    }

    public Integer getPlus() {
        return plus;
    }
    public void setPlus(Integer plus) {
        this.plus = plus;
    }

    @Override
    public String toString() {
        return "Append{" +
                "commentary='" + commentary + '\'' +
                ", time=" + time +
                ", value=" + value +
                ", uid=" + uid +
                ", valid=" + valid +
                '}';
    }
}
